﻿using System;
using System.Web.Routing;

namespace PrismicIOAPI.Usage.Example
{
    public class Global : System.Web.HttpApplication
    {
        private void RegisterRoutes()
        {
            RouteTable.Routes.MapPageRoute( "PreviewRoute" , "preview" , "~/aspx/preview.aspx" , false );
            RouteTable.Routes.MapPageRoute( "default" , "default" , "~/aspx/default.aspx" , false );
            RouteTable.Routes.MapPageRoute( "index" , "index" , "~/aspx/default.aspx" , false );
            RouteTable.Routes.MapPageRoute( "landing" , "" , "~/aspx/default.aspx" , false );
            RouteTable.Routes.MapPageRoute( "test" , "test" , "~/aspx/test.aspx" , false );
            RouteTable.Routes.MapPageRoute( "test2" , "test2" , "~/aspx/test2.aspx" , false );
            RouteTable.Routes.MapPageRoute( "test3" , "test3" , "~/aspx/test3.aspx" , false );
        }
        protected void Application_Start( object sender , EventArgs e )
        {
            RegisterRoutes();
        }

        protected void Session_Start( object sender , EventArgs e )
        {

        }

        protected void Application_BeginRequest( object sender , EventArgs e )
        {

        }

        protected void Application_AuthenticateRequest( object sender , EventArgs e )
        {

        }

        protected void Application_Error( object sender , EventArgs e )
        {

        }

        protected void Session_End( object sender , EventArgs e )
        {

        }

        protected void Application_End( object sender , EventArgs e )
        {

        }
    }
}